package com.zb.tools;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceTool {

    @Tool(name = "getOrderInfoById",description = "根据订单编号获取订单详情")
    public String getOrderInfoById(@ToolParam(description = "订单id") String orderId){
        return "通过MCP服务对外提供的订单信息："+orderId;
    }

}
